<h1>Агенства</h1>

<div style="width: 100%">
	{if $AgencyStaffs->hasPaginate()}
		<div id="agencystaff_paging_top" class="paging">
			{$AgencyStaffs->showPager()}
			{literal}
				<script>
				    new Pager("agencystaff_paging_top");
				</script>
			{/literal}
		</div>
	{/if}<br>
	<div class="table_body">
		<table class="text">
			<tr>
				<th>ФИО</th>
				<th>Агенство</th>
				<th>Должность</th>
				<th>Образование</th>
				<th>День рождения</th>
				<th>Телефон</th>
				<th>E-mail</th>
				<th>&nbsp;</th>
			</tr>
			{foreach item=AgencyStaff from=$AgencyStaffs}
			<tr>
			    <td class="mixed">{$AgencyStaff->lastname} {$AgencyStaff->firstname} {$AgencyStaff->secondname}</td>
			    <td class="mixed">
			    	<A href="{$fvConfig->get('dir_web_root')}agency/edit/?id={$AgencyStaff->agency_id}" 
        			onclick="go('{$fvConfig->get('dir_web_root')}agency/edit/?id={$AgencyStaff->agency_id}'); return false;"
        			>{$AgencyStaff->getDictionary('name', 'altu_cert_agency', 'agency_id', 'id')}</a>
			    </td>
			    <td class="mixed">{$AgencyStaff->post}</td>
			    <td class="mixed">{$AgencyStaff->education}</td>
			    <td class="mixed">{$AgencyStaff->birth_date}</td>
			    <td class="mixed">{$AgencyStaff->phone_mobile}</td>
			    <td class="mixed">{$AgencyStaff->email}</td>
			    <td width="40px" align="center" valign="middle">
        <A 
           href="{$fvConfig->get('dir_web_root')}agencystaff/edit/?id={$AgencyStaff->getPk()}" 
        onclick="go('{$fvConfig->get('dir_web_root')}agencystaff/edit/?id={$AgencyStaff->getPk()}'); return false;"
        ><img src="{$fvConfig->get('dir_web_root')}img/edit_icon.png" title="редактировать" width="16" height="16"></a>
        <a
           href="javascript: void(0);" 
        onclick="if (confirm('Вы действительно желаете удалить сотрудника агенства?')) go('{$fvConfig->get('dir_web_root')}agencystaff/delete/?id={$AgencyStaff->getPk()}'); return false;"
        ><img src="{$fvConfig->get('dir_web_root')}img/delete_icon.png" title="удалить" width="16" height="16"></a>
       </td>
       
			</tr>
			{/foreach}
		</table>
	</div>
	{if $AgencyStaffs->hasPaginate()}
		<div id="agencystaff_paging_bottom" class="paging">
			{$AgencyStaffs->showPager()}
			{literal}
				<script>
				    new Pager("agencystaff_paging_bottom");
				</script>
			{/literal}
		</div>
	{/if}
	<div class="operation">
	    <a href="{$fvConfig->get('dir_web_root')}agencystaff/edit/" onclick="go('{$fvConfig->get('dir_web_root')}agencystaff/edit/'); return false;" class="add">добавить сотрудника</a>
	    <a href="{$fvConfig->get('dir_web_root')}agencystaff/editdir/" onclick="go('{$fvConfig->get('dir_web_root')}agencystaff/editdir/'); return false;" class="add">добавить директора</a>
	    <div style="clear: both;"></div>
	    
	</div>
</div>